package com.rightsidetech.system.mapper;

import com.rightsidetech.system.dtos.response.store.StoreAddressResp;
import com.rightsidetech.system.entity.store.SysStoreAddress;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysStoreAddressMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysStoreAddress record);

    int insertSelective(SysStoreAddress record);

    SysStoreAddress selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysStoreAddress record);

    int updateByPrimaryKey(SysStoreAddress record);

    Integer selectCountByStoreId(@Param("storeId") Long storeId);

    int updateIsDefault(@Param("storeId") Long storeId);

    SysStoreAddress selectBaseBySaveReq(SysStoreAddress address);

    List<StoreAddressResp> selectList(@Param("storeId")Long storeId);
}